<?php
//Found at http://www.phpbuddy.com/article.php?id=4

$fcontents = join ('', file ('ads.php'));
$s_con = preg_split("/~/",$fcontents);

$banner_no = rand(0,(count($s_con)-1));
echo $s_con[$banner_no];

?>
